import request from '@/utils/request'

// 查询启动页信息列表
export function listStartup(query) {
  return request({
    url: '/advertising/startup/list',
    method: 'get',
    params: query
  })
}

// 查询启动页信息详细
export function getStartup(id) {
  return request({
    url: '/advertising/startup/' + id,
    method: 'get'
  })
}

// 新增启动页信息
export function addStartup(data) {
  return request({
    url: '/advertising/startup',
    method: 'post',
    data: data
  })
}

// 修改启动页信息
export function updateStartup(data) {
  return request({
    url: '/advertising/startup',
    method: 'put',
    data: data
  })
}

// 删除启动页信息
export function delStartup(id) {
  return request({
    url: '/advertising/startup/' + id,
    method: 'delete'
  })
}
